@extends('layout/admin/admins')

@section('title','修改密码')

@section('content')

<div class="mws-panel grid_8">
    <div class="mws-panel-header">
        <span>修改个人密码</span>
    </div>
    <div class="mws-panel-body no-padding">
	    @if (count($errors) > 0)
			<div class="mws-form-message error">
		        <ul>
		            @foreach ($errors->all() as $error)
		                <li>{{ $error }}</li>
		            @endforeach
		        </ul>
		    </div>
		@endif
		<form action="/admin/UpdatePass" method='post' class="mws-form" enctype='multipart/form-data'>
		<input type="hidden" name='id' value="{{ session('uid') }}">
			<div class="mws-form-inline">
				<div class="mws-form-row">
					<label class="mws-form-label">原密码:</label>
					<div class="mws-form-item">
						<input type="password" class="small" name='oldpassword'>
					</div>
				</div>
				<div class="mws-form-row">
					<label class="mws-form-label">新密码:</label>
					<div class="mws-form-item">
						<input type="password" class="small" name='password'>
					</div>
				</div>
				<div class="mws-form-row">
					<label class="mws-form-label">确认密码:</label>
					<div class="mws-form-item">
						<input type="password" class="small" name='repassword'>
					</div>
				</div>
			</div>
			<div class="mws-button-row">
				{{ csrf_field() }}
				<input type="submit" class="btn btn-danger" value="提交">
				<input type="reset" class="btn " value="重置">
			</div>
		</form>
    </div>    	
</div>



@endsection